<?php

namespace app\api\validate;
/*
 * Edit by shengxin
 * Click nbfs://nbhost/SystemFileSystem/Templates/Scripting/PHPClass.php to edit this template
 */
use think\Validate;
/**
 * Description of BookingValidate
 *
 * @author PC
 */
class BookingValidate extends Validate{
    
        //定义验证规则
    protected $rule = [
        'date|日期' => 'require|date',
        'start|开始时间'  => 'require|gt:480',
        'end|结束时间'     => 'require',
        'id|房间ID'   => 'require',
    ];

//    // 登录验证场景定义
//    public function sceneUpdate()
//    {
//        return $this->only(['username', 'password', 'email', 'roleid'])
//            ->remove('password', 'require');
//    }
//
//    //定义验证场景
//    protected $scene = [
//        'insert' => ['username', 'password', 'email', 'roleid'],
//
//    ];
}
